<!-- 充值成功 -->
<template>
	<view class="container">
		<image class="icon" src="../../../static/images/center/iconGou.png" mode=""></image>
		<view class="moneyBox">
			<text>充值成功</text>
			<view class="money">
				<text class="county">￥</text>
				<text class="count">{{Number(num).toFixed(2)}}</text>
			</view>
		</view>
		<button class="withdraw" type="default" @tap="finish">完成</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				num: ""
			}
		},
		onLoad(options) {
			this.num = options.num
		},
		methods: {
			finish() {
				uni.redirectTo({
					url: `/pages/index/index?current=${4}`
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		text-align: center;
		position: relative;

		.icon {
			display: block;
			margin: 150rpx auto 100rpx;
			width: 150rpx;
			height: 150rpx;
			border-radius: 75rpx;
		}
		.moneyBox {
			>text{
				font-size:26rpx;
				font-weight:400;
				color:rgba(51,51,51,1);
			}
			.money{
					margin-top: 20rpx;
				.county{
					font-size:30rpx;
					font-weight:bold;
					color:rgba(51,51,51,1);
				}
				.count{
					font-size:50rpx;
					font-weight:bold;
					color:rgba(51,51,51,1);
				}
			}
		}
		.withdraw{
			position: fixed;
			bottom: 60rpx;
			left: 75rpx;
			width:600rpx;
			height:80rpx;
			line-height: 80rpx;
			background:$theme-color;
			color: #fff;
			border-radius:40rpx;
			font-size:32rpx;
			letter-spacing: 10rpx;
			font-weight:bold;
		}
	}
</style>
